package service;

import dao.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.Orderlist;

@Service("orderService")
@Transactional
public class OrderService {
    @Autowired
    private OrderDao orderDao;
    public int aO(Orderlist orderlist){return orderDao.addOrder(orderlist);}
    public int deal(Integer oid){return orderDao.deal(oid);}
}
